home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE20 / TIPTRIX / LISTING4.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-03-17  |  496 b   |  21 lines

  1. var
  2.   aOpenList: TList;
  3.   j: Integer;
  4. begin
  5.   aOpenList:=TList.Create;
  6.   try
  7.     with Session do for i:= 0 to DatabaseCount - 1 do begin
  8.       for j:=0 to Databases[i].DataSetCount-1 do
  9.         if DataBases[i].DataSet[i].Active then
  10.           aOpenList.Add(Pointer(DataBases[i].DataSet[i]));
  11.       Databases[I].close;
  12.       DropConnections;
  13.     end;
  14.     ....
  15.     for j:=0 to aOpenList.Count-1 do
  16.       TDbDataSet(aOpenList[j]).Open;
  17.   finally
  18.     aOpenList.Free;
  19.   end;
  20. end;
  21.